//
//  OSCNewsCell.m
//  OSClient
//
//  Created by Chaosky on 15/10/22.
//  Copyright © 2015年 1000phone. All rights reserved.
//

#import "OSCNewsCell.h"

@implementation OSCNewsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

// 重写Set方法
- (void)setNews:(OSCNews *)news
{
    _news = news;
    // 设置界面
    _titleLabel.text = _news.title;
    _bodyLabel.text = _news.body;
    _authorLabel.text = _news.author;
    _pushDateLabel.text = _news.pubDate;
    _commentCountLabel.text = _news.commentCount;
}

@end
